package review.复习Java知识;

public class 复习Java循环知识 {
    //1，选择结构 if,switch case,
    //2，循环 While,do while,for,foreach
    public static void main(String[] args) {
        boolean flage=true;
        int sum=23;
        if (flage){
            System.out.println("当前flage为真");
        }
        if (sum>5){
            System.out.println("当前表达式为真");
        }else if(sum<3){
            System.out.println("sum<3");
        }else {
            System.out.println("sum为3,4,5");
        }
        switch (sum){
            case 56: System.out.println("当前值为56");break;
            case 5: System.out.println("当前值为5");break;
            case 6: System.out.println("当前值为6");break;
            default:System.out.println("执行默认代码块");
        }

    }
}
